package com.jeomo.mem.starter.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.jeomo.base.starter.annocations.Keyword;
import com.jeomo.base.starter.entity.BaseOrgEntity;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 会员卡信息
 *
 * @author Jackpot
 * @since 2020-10-22
 */
public class MemberCard extends BaseOrgEntity {

	private static final long serialVersionUID = 1L;

    /** 组织 */
    private String org;
    /** 会员卡号 */
    @TableId(type = IdType.ASSIGN_ID)
    private String cardNo;
    /** 会员号  */
    private String memberNo;
    /** 手机号 */
    private String phone;
    /** 会员级别 */
    private String memLevel;
    @TableField(exist = false)
    private String memLevelName;
    /** 会员卡状态 */
    private String memStatus;
    /** 当前金额 */
    private Double amount;
    /** 累计消费金额 */
    private Double totalConsumeAmount;
    /** 累计消费次数 */
    private Integer totalConsumeNumber;
    /** 当前积分 */
    private Integer points;
    /** 累计获得积分 */
    private Integer totalWinPoints;
    /** 开卡时间 */
    private LocalDateTime openTime;

    //会员信息

    /** 姓名 */
    @TableField(exist = false)
    private Long memberVersion;
    @TableField(exist = false)
    private String code;
    @TableField(exist = false)
    private String name;
    @TableField(exist = false)
    private String memberPhone;
    /** 微信号 */
    @TableField(exist = false)
    private String wechat;
    /** 邮箱 */
    @TableField(exist = false)
    private String email;
    /** 城市 */
    @TableField(exist = false)
    private Integer city;
    @TableField(exist = false)
    private String cityName;
    /** 详情地址 */
    @TableField(exist = false)
    private String address;
    /** 证件类型 */
    @TableField(exist = false)
    private Integer cerType;
    /** 证件号码 */
    @TableField(exist = false)
    private String cerNumber;
    /** 生日 */
    @TableField(exist = false)
    private LocalDate birthday;
    /** 性别  */
    @TableField(exist = false)
    private String sex;
    /** 注册渠道 */
    @TableField(exist = false)
    private String regChannel;
    /** 工作单位 */
    @TableField(exist = false)
    private String workUnit;
    /** 职位 */
    @TableField(exist = false)
    private String post;
    /** 车牌号 */
    @TableField(exist = false)
    private String carNumber;
    /** 注册时间 */
    @TableField(exist = false)
    private LocalDateTime regTime;

    public Long getMemberVersion() {
        return memberVersion;
    }

    public void setMemberVersion(Long memberVersion) {
        this.memberVersion = memberVersion;
    }

    public Integer getCity() {
        return city;
    }

    public void setCity(Integer city) {
        this.city = city;
    }

    public String getCityName() {
        return cityName;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getOrg() {
        return org;
    }

    public void setOrg(String org) {
        this.org = org;
    }


    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public String getMemberNo() {
        return memberNo;
    }

    public void setMemberNo(String memberNo) {
        this.memberNo = memberNo;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getMemLevel() {
        return memLevel;
    }

    public void setMemLevel(String memLevel) {
        this.memLevel = memLevel;
    }

    public String getMemStatus() {
        return memStatus;
    }

    public void setMemStatus(String memStatus) {
        this.memStatus = memStatus;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public Double getTotalConsumeAmount() {
        return totalConsumeAmount;
    }

    public void setTotalConsumeAmount(Double totalConsumeAmount) {
        this.totalConsumeAmount = totalConsumeAmount;
    }

    public Integer getTotalConsumeNumber() {
        return totalConsumeNumber;
    }

    public void setTotalConsumeNumber(Integer totalConsumeNumber) {
        this.totalConsumeNumber = totalConsumeNumber;
    }

    public Integer getPoints() {
        return points;
    }

    public void setPoints(Integer points) {
        this.points = points;
    }

    public Integer getTotalWinPoints() {
        return totalWinPoints;
    }

    public void setTotalWinPoints(Integer totalWinPoints) {
        this.totalWinPoints = totalWinPoints;
    }

    public LocalDateTime getOpenTime() {
        return openTime;
    }

    public void setOpenTime(LocalDateTime openTime) {
        this.openTime = openTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMemberPhone() {
        return memberPhone;
    }

    public void setMemberPhone(String memberPhone) {
        this.memberPhone = memberPhone;
    }

    public String getWechat() {
        return wechat;
    }

    public void setWechat(String wechat) {
        this.wechat = wechat;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getCerType() {
        return cerType;
    }

    public void setCerType(Integer cerType) {
        this.cerType = cerType;
    }

    public String getCerNumber() {
        return cerNumber;
    }

    public void setCerNumber(String cerNumber) {
        this.cerNumber = cerNumber;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getRegChannel() {
        return regChannel;
    }

    public void setRegChannel(String regChannel) {
        this.regChannel = regChannel;
    }

    public String getWorkUnit() {
        return workUnit;
    }

    public void setWorkUnit(String workUnit) {
        this.workUnit = workUnit;
    }

    public String getPost() {
        return post;
    }

    public void setPost(String post) {
        this.post = post;
    }

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }

    public LocalDateTime getRegTime() {
        return regTime;
    }

    public void setRegTime(LocalDateTime regTime) {
        this.regTime = regTime;
    }

    public String getMemLevelName() {
        return memLevelName;
    }

    public void setMemLevelName(String memLevelName) {
        this.memLevelName = memLevelName;
    }
}
